Optimal. Leaf size=38 \[ \frac{a c \tanh ^{-1}(\sin (e+f x))}{2 f}-\frac{a c \tan (e+f x) \sec (e+f x)}{2 f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0497687, antiderivative size = 38, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 28, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.107, Rules used = {3958, 2611, 3770} \[ \frac{a c \tanh ^{-1}(\sin (e+f x))}{2 f}-\frac{a c \tan (e+f x) \sec (e+f x)}{2 f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3958
Rule 2611
Rule 3770
Rubi steps
\begin{align*} \int \sec (e+f x) (a+a \sec (e+f x)) (c-c \sec (e+f x)) \, dx &=-\left ((a c) \int \sec (e+f x) \tan ^2(e+f x) \, dx\right )\\ &=-\frac{a c \sec (e+f x) \tan (e+f x)}{2 f}+\frac{1}{2} (a c) \int \sec (e+f x) \, dx\\ &=\frac{a c \tanh ^{-1}(\sin (e+f x))}{2 f}-\frac{a c \sec (e+f x) \tan (e+f x)}{2 f}\\ \end{align*}
Mathematica [A] time = 0.0288633, size = 38, normalized size = 1. \[ -a c \left (\frac{\tan (e+f x) \sec (e+f x)}{2 f}-\frac{\tanh ^{-1}(\sin (e+f x))}{2 f}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.015, size = 42, normalized size = 1.1 \begin{align*}{\frac{ac\ln \left ( \sec \left ( fx+e \right ) +\tan \left ( fx+e \right ) \right ) }{2\,f}}-{\frac{ac\sec \left ( fx+e \right ) \tan \left ( fx+e \right ) }{2\,f}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.951144, size = 92, normalized size = 2.42 \begin{align*} \frac{a c{\left (\frac{2 \, \sin \left (f x + e\right )}{\sin \left (f x + e\right )^{2} - 1} - \log \left (\sin \left (f x + e\right ) + 1\right ) + \log \left (\sin \left (f x + e\right ) - 1\right )\right )} + 4 \, a c \log \left (\sec \left (f x + e\right ) + \tan \left (f x + e\right )\right )}{4 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.476123, size = 178, normalized size = 4.68 \begin{align*} \frac{a c \cos \left (f x + e\right )^{2} \log \left (\sin \left (f x + e\right ) + 1\right ) - a c \cos \left (f x + e\right )^{2} \log \left (-\sin \left (f x + e\right ) + 1\right ) - 2 \, a c \sin \left (f x + e\right )}{4 \, f \cos \left (f x + e\right )^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} - a c \left (\int - \sec{\left (e + f x \right )}\, dx + \int \sec ^{3}{\left (e + f x \right )}\, dx\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.82412, size = 80, normalized size = 2.11 \begin{align*} \frac{a c \log \left (\sin \left (f x + e\right ) + 1\right ) - a c \log \left (-\sin \left (f x + e\right ) + 1\right ) + \frac{2 \, a c \sin \left (f x + e\right )}{\sin \left (f x + e\right )^{2} - 1}}{4 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]